<?php


class CitiesComponent extends BaseComponent {


	function getHTML(){	
		$template = parent::getHTML();
		$content = '';
		$citiesService = &getService('CitiesService');		
		for($i = 0; $i < count($citiesService->citiesList); $i++){
			$content .= $template . "\r\n";
			$content = str_replace('[CITY_NAME]', $citiesService->citiesList[$i]->key, $content);
			$content = str_replace('[CITY_CAPTION]', $citiesService->citiesList[$i]->name, $content);		
		}		
				
		return $content;
	}

}



?>